import { createRouter , createWebHashHistory } from "vue-router";
import { routes } from './routes'
const router = createRouter({
    history: createWebHashHistory(),
    //滚动行为
    scrollBehavior(to, from, savedPosition) {
        //回到顶部
        return { top: 0 }
    },
    routes
})

export default router;
